POV-Ray : Newsgroups : povray.general : re media : re media Server Time
12 Aug 2024 19:32:52 EDT (-0400)
  re media  
From: Mick Hazelgrove
Date: 17 Jan 1999 06:18:17
Message: <36a1c6f9.0@news.povray.org>
I'm not sure where to post this... here or in bugs...

So I'll post it here


Consider this piece of code render it.. no problems

now change the end vectors of the cylinder to some random positions try
several.

The media does not seem to follow the position/orientation of the
cylinder!!!!

Post transformation and rotation works OK.

I've just spent 2 days creating a spiral of tubes that were to be filled
with media and it don't work... oh hell back to the drawing board.

Mick



#include "colors.inc"

global_settings
{
  assumed_gamma 1.0
}

// ----------------------------------------
camera{location  <0.0, 0.0, -20.0>
       look_at   <0.0, 0.0,  0.0>
}

light_source{<-30, 30, -30>,color rgb<1,1,1>}

// ----------------------------------------
#declare Spark =
cylinder{y*-2,y*2,0.5
 pigment { rgbt 1}
  interior {
    media {
      emission 12
      intervals 20
      samples 20, 20
      confidence 0.9999
      variance 1/1000
          density

              cylindrical
                 turbulence 1.0
                   colour_map {
                      [0 rgb 0]
                      [0.3 rgb <0,0,0.1>]
                      [0.5 rgb <0.15,0,0.25>]
                      [0.7 rgb <0,0,0.5>]
                      [0.8 rgb <0,0.75,0.0>]
                      [0.95 rgb <0,0.75,0.5>]
                      }

           scale <0.35,0.5,0.35>
       }
     }

   }
   hollow
 }

object{Spark scale 1 }


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.